package com.cqndt.site.controller;

import com.cqndt.site.service.web.ITabJournalRecordService;
import com.cqndt.site.util.Result;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Description:月刊记录
 */
@RestController
@RequestMapping("record")
public class TabJournalRecordController {

    @Autowired
    private ITabJournalRecordService recordService;

    @ApiOperation("期刊详情")
    @RequestMapping(value = "/detail/**",method = RequestMethod.GET)
    @ApiImplicitParams({
            @ApiImplicitParam(dataType = "Integer", name = "periodNum", value = "期刊期数", defaultValue = "", paramType = "query")
    })
    public Result detail(Integer periodNum) {
        return recordService.getRecordByNum(periodNum);
    }
}
